package entidades;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import enums.DiaSemana;

@Entity
public class Horario implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public long id;
	
	@Column(nullable=false)
	@Enumerated(EnumType.STRING)
	public DiaSemana diaSemana;
	
	@Column(nullable=false)
	@Temporal(TemporalType.TIME)
	public Date inicio;
	
	@Column(nullable=false)
	@Temporal(TemporalType.TIME)
	public Date fim;
}
